import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/shop/getShopList',
    method: 'get',
    params
  })
}

export function giveShop(params) {
  return request({
    url: '/shop/giveShop',
    method: 'get',
    params
  })
}

export function addDecoration(data) {
  return request({
    url: '/shop/addDecoration',
    method: 'post',
    data
  })
}

export function updateDecoration(data) {
  return request({
    url: '/shop/updateDecoration',
    method: 'put',
    data
  })
}
export function deleteById(id) {
  return request({
    url: `/shop/deleteById/${id}`,
    method: 'delete'
  })
}
